package com.test.p11flyweight.example02;

public class ConcreateChess implements ChessFlyweight {

    private String color;

    public ConcreateChess(String color) {
        this.color = color;
    }

    @Override
    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String getColor() {
        return color;
    }

    @Override
    public void dispaly(Coordinate c) {
        System.out.println("color:"+color+"   coordinate:"+c.getX()+" , "+c.getY());
    }
}
